﻿ 
using System.Collections.Generic;
using NTTDATA.BEENChina.ResultCertification.Logic;
using NTTDATA.BEENChina.ResultCertification.Result;

namespace NTTDATA.BEENChina.ResultCertification.DataStore
{
    interface IDataTarget
    {
        int InsertOrders(IEnumerable<OrderData> orders);

        int RemoveOrders();

        List<OrderData> GetOrders(EnumOrderState state);

        int UpdateOrderStates(string serverCode, string orderId, EnumOrderState state);

        int InsertChildImage(ChildImage childImages);

        int DeleteChildImages(string orderid);

        bool ExistChildImages(string orderid);

        /// <summary>
        ///供测试使用
        /// </summary>
        /// <returns></returns>
        List<ChildImage> GetTestChildImageObjects();

        /// <summary>
        ///供测试使用
        /// </summary>
        /// <returns></returns>
        List<ChildImage> GetTestChildImageObjects(string categoryId);


    }
}
